/**
 * Copyright (C), 2015-2018, 成都启迪信息技术有限公司
 * FileName: KernelReceiveLogs
 * Author:   sjkyll
 * Date:     2018-11-28 16:36
 * Description:
 * <author>          <time>          <version>          <desc>
 * 作者姓名         修改时间           版本号            描述
 */
package com.cdqidi.smsservice.domain;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * 〈一句话功能简述〉<br> 
 *
 * @author sjkyll
 * @create 2018-11-28 16:36
 * @since 1.0.0
 */
@Entity
@Table(name = "kernel_receive_logs", schema = "smapp")
public class KernelReceiveLogs {
    private String autoSn;
    private int functionId;
    private int smSum;
    private int smSort;
    private String srcNum;
    private String checkCode;
    private String schoolId;
    private String uid;
    private String destNum;
    private String content;
    private int isPush;
    private String pushTitle;
    private String pushUrl;
    private String atTime;
    private int level;
    private Timestamp receiveTime;
    private String smsNumber;

    @Id
    @Column(name = "AUTO_SN")
    public String getAutoSn() {
        return autoSn;
    }

    public void setAutoSn(String autoSn) {
        this.autoSn = autoSn;
    }

    @Basic
    @Column(name = "FUNCTION_ID")
    public int getFunctionId() {
        return functionId;
    }

    public void setFunctionId(int functionId) {
        this.functionId = functionId;
    }

    @Basic
    @Column(name = "SM_SUM")
    public int getSmSum() {
        return smSum;
    }

    public void setSmSum(int smSum) {
        this.smSum = smSum;
    }

    @Basic
    @Column(name = "SM_SORT")
    public int getSmSort() {
        return smSort;
    }

    public void setSmSort(int smSort) {
        this.smSort = smSort;
    }

    @Basic
    @Column(name = "SRC_NUM")
    public String getSrcNum() {
        return srcNum;
    }

    public void setSrcNum(String srcNum) {
        this.srcNum = srcNum;
    }

    @Basic
    @Column(name = "CHECK_CODE")
    public String getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(String checkCode) {
        this.checkCode = checkCode;
    }

    @Basic
    @Column(name = "SCHOOL_ID")
    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    @Basic
    @Column(name = "UID")
    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "DEST_NUM")
    public String getDestNum() {
        return destNum;
    }

    public void setDestNum(String destNum) {
        this.destNum = destNum;
    }

    @Basic
    @Column(name = "CONTENT")
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "IS_PUSH")
    public int getIsPush() {
        return isPush;
    }

    public void setIsPush(int isPush) {
        this.isPush = isPush;
    }

    @Basic
    @Column(name = "PUSH_TITLE")
    public String getPushTitle() {
        return pushTitle;
    }

    public void setPushTitle(String pushTitle) {
        this.pushTitle = pushTitle;
    }

    @Basic
    @Column(name = "PUSH_URL")
    public String getPushUrl() {
        return pushUrl;
    }

    public void setPushUrl(String pushUrl) {
        this.pushUrl = pushUrl;
    }

    @Basic
    @Column(name = "AT_TIME")
    public String getAtTime() {
        return atTime;
    }

    public void setAtTime(String atTime) {
        this.atTime = atTime;
    }

    @Basic
    @Column(name = "LEVEL")
    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Basic
    @Column(name = "RECEIVE_TIME")
    public Timestamp getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(Timestamp receiveTime) {
        this.receiveTime = receiveTime;
    }

    @Basic
    @Column(name = "SMS_NUMBER")
    public String getSmsNumber() {
        return smsNumber;
    }

    public void setSmsNumber(String smsNumber) {
        this.smsNumber = smsNumber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        KernelReceiveLogs that = (KernelReceiveLogs) o;
        return functionId == that.functionId &&
                smSum == that.smSum &&
                smSort == that.smSort &&
                isPush == that.isPush &&
                level == that.level &&
                Objects.equals(autoSn, that.autoSn) &&
                Objects.equals(srcNum, that.srcNum) &&
                Objects.equals(checkCode, that.checkCode) &&
                Objects.equals(schoolId, that.schoolId) &&
                Objects.equals(uid, that.uid) &&
                Objects.equals(destNum, that.destNum) &&
                Objects.equals(content, that.content) &&
                Objects.equals(pushTitle, that.pushTitle) &&
                Objects.equals(pushUrl, that.pushUrl) &&
                Objects.equals(atTime, that.atTime) &&
                Objects.equals(receiveTime, that.receiveTime) &&
                Objects.equals(smsNumber, that.smsNumber);
    }

    @Override
    public int hashCode() {
        return Objects.hash(autoSn, functionId, smSum, smSort, srcNum, checkCode, schoolId, uid, destNum, content, isPush, pushTitle, pushUrl, atTime, level, receiveTime, smsNumber);
    }
}